import { ElNotification, ElMessageBox } from "element-plus";

export const dialog = (content, title, type = "warning") => {
  return ElMessageBox.confirm(content, title, {
    confirmButtonText: "确定",
    cancelButtonText: "取消",
    type,
  });
};
export const toast = (title, message, type = "success") => {
  return ElNotification({
    title,
    message,
    type,
    duration: 500,
  });
};
